package edu.bu.grocerylist.model;

import java.io.Serializable;

/**
 * Object that represents a user in the system
 * @author donlanp
 *
 *03/27 aks       added security question and answer field. 
 */
public class GroceryUser  implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -6484181859962359362L;
	private int userId;
	private String email;
	private String password;
	
	private String securityQuestion;
	private String securityAnswer;
	
	/**
	 * Default Constructor
	 */
	public GroceryUser(){
		
	}
	
	/**
	 * Easy setter-constructor
	 * @param email
	 * @param password
	 */
	public GroceryUser(String email, String password, String secQuest,String secAns) {
		super();
		this.email = email;
		this.password = password;
		this.securityQuestion = secQuest;
		this.securityAnswer = secAns;
	}

	/**
	 * @return the userId
	 */
	public int getUserId() {
		return userId;
	}
	
	/**
	 * @param userId the userId to set
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}
	
	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	
	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}
	
	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the securityQuestion
	 */
	public String getSecurityQuestion() {
		return securityQuestion;
	}

	/**
	 * @param securityQuestion the securityQuestion to set
	 */
	public void setSecurityQuestion(String securityQuestion) {
		this.securityQuestion = securityQuestion;
	}

	/**
	 * @return the securityAnswer
	 */
	public String getSecurityAnswer() {
		return securityAnswer;
	}

	/**
	 * @param securityAnswer the securityAnswer to set
	 */
	public void setSecurityAnswer(String securityAnswer) {
		this.securityAnswer = securityAnswer;
	}
	
}
